package com.moyq5.mvc.framework.exception;

public class MyException extends RuntimeException {

	private static final long serialVersionUID = 1L;
	
	protected Object data;

	protected String code;
	
	public MyException() {
        super("非法操作");
    }

    public MyException(String s) {
        super(s);
    }

    public MyException(String code, String s) {
        super(s);
        this.code = code;
    }

    public MyException(String message, Throwable cause) {
        super(message, cause);
    }

    public MyException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public MyException(Throwable cause) {
        super(cause);
    }

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
}
